using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerDrop : ItemDrop
{
    public override void RandomDropItem()
    {
        Inventory inventory = Inventory.Instance;
        List<InventoryItem> inventoryList = inventory.GetStatList();
        for(int i=0;i< inventoryList.Count; ++i)
        {
            if (Random.Range(0, 100) < inventoryList[i].itemData.dorpChance)
            {
                Drop(inventoryList[i].itemData);
                inventory.DeleteItem(inventoryList[i].itemData);
            }
        } 
    }
}
